import request from '@/utils/request'

// 添加检查表
export const addCheckTable = (data) => {
  return request({
    method: 'post',
    url: '/inspection/table/add',
    data,
  })
}

// 查询检查表列表
export const getCheckTableList = (params) => {
  return request({
    method: 'get',
    url: '/inspection/table/query',
    params,
  })
}

// 获取检查表详情
export const getCheckTableDetail = (params) => {
  return request({
    method: 'get',
    url: '/inspection/table/get',
    params,
  })
}

// 修改检查表
export const updateCheckTable = (data) => {
  return request({
    method: 'put',
    url: `/inspection/table/update/${data.pkid}`,
    data,
  })
}

// 删除检查表
export const deleteCheckTable = (params) => {
  return request({
    method: 'delete',
    url: `/inspection/table/delete`,
    params,
  })
}
